package com.acerola;

import com.acerola.mrpc.service.IUserService;

public class Consumer {
    public static void main(String[] args) {
        RpcClientProxy rpcClientProxy = new RpcClientProxy();
        IUserService iUserService = rpcClientProxy.clientProxy(IUserService.class, "127.0.0.1", 8082);
        System.out.println(iUserService.saveUser("莫家1"));
        System.out.println(iUserService.saveUser("莫家2"));
        System.out.println(iUserService.saveUser("莫家3"));
        System.out.println(iUserService.saveUser("莫家4"));
        System.out.println(iUserService.saveUser("莫家5"));
        System.out.println(iUserService.saveUser("莫家6"));
    }
}
